PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Theme Drag Sound Constants

Your application can pass constants of type ThemeDragSoundKind to the function BeginThemeDragSound to play a theme-specific sound when a user drags an interface object or otherwise holds the mouse button down for an extended action. Dragging sounds are looped for the duration of the drag and cease when your application calls EndThemeDragSound when the drag has finished. Only one drag sound may occur at a time. The ThemeDragSoundKind constants are available with Appearance Manager 1.1 and later.

enum {
    kThemeDragSoundNone                     = 0,
    kThemeDragSoundMoveWindow               = 'wmov',
    kThemeDragSoundGrowWindow               = 'wgro',
    kThemeDragSoundMoveUtilWindow           = 'umov',
    kThemeDragSoundGrowUtilWindow           = 'ugro',
    kThemeDragSoundMoveDialog               = 'dmov',
    kThemeDragSoundMoveAlert                = 'amov',
    kThemeDragSoundMoveIcon                 = 'imov',
    kThemeDragSoundSliderThumb              = 'slth',
    kThemeDragSoundSliderGhost              = 'slgh',
    kThemeDragSoundScrollBarThumb           = 'sbth',
    kThemeDragSoundScrollBarGhost           = 'sbgh',
    kThemeDragSoundScrollBarArrowDecreasing = 'sbad',
    kThemeDragSoundScrollBarArrowIncreasing = 'sbai',
    kThemeDragSoundDragging                 = 'drag'
};
typedef OSType ThemeDragSoundKind;

Constant descriptions

kThemeDragSoundNone
Specifies that no drag sound is used.
kThemeDragSoundMoveWindow
Specifies a sound to be played when the user moves a document window.
kThemeDragSoundGrowWindow
Specifies a sound to be played when the user resizes a window by dragging the size box.
kThemeDragSoundMoveUtilWindow
Specifies a sound to be played when the user moves a utility window.
kThemeDragSoundGrowUtilWindow
Specifies a sound to be played when the user resizes a utility window by dragging the size box.
kThemeDragSoundMoveDialog
Specifies a sound to be played when the user moves a dialog box.
kThemeDragSoundMoveAlert
Specifies a sound to be played when the user moves an alert box.
kThemeDragSoundMoveIcon
Specifies a sound to be played when the user moves an icon.
kThemeDragSoundSliderThumb
Specifies a sound to be played when the user drags the indicator of a slider control that supports live feedback.
kThemeDragSoundSliderGhost
Specifies a sound to be played when the user drags the indicator of a slider control that does not support live feedback.
kThemeDragSoundScrollBarThumb
Specifies a sound to be played when the user drags a scroll box belonging to a scroll bar that supports live feedback.
kThemeDragSoundScrollBarGhost
Specifies a sound to be played when the user drags a scroll box belonging to a scroll bar that does not support live feedback.
kThemeDragSoundScrollBarArrowDecreasing
Specifies a sound to be played when the user presses and holds the mouse button while the cursor is over the scroll bar arrow that decreases the scroll bar's value.
kThemeDragSoundScrollBarArrowIncreasing
Specifies a sound to be played when the user presses and holds the mouse button while the cursor is over the scroll bar arrow that increases the scroll bar's value.
kThemeDragSoundDragging
Specifies a sound to be played during a Drag Manager drag.

© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)